# -*- coding: utf-8 -*-

from django import forms

from usuarios.models import Grupo, Permissao

import fields

class GrupoForm(forms.ModelForm):
    permissoes = fields.CustomTokenInputField(queryset=Permissao.objects.all())
    class Meta:
        model = Grupo
        fields = ('nome', 'permissoes')

